/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.designPatterns.creational.factoryMethod.model;

import ac.za.designPatterns.creational.factoryMethod.Car;

/**
 *
 * @author Sandiso Toto
 */
public class MordenCar extends Car{

    boolean start = false;
    boolean alarm = false;
    int airbags ;

    public boolean isAlarm() {
        return alarm;
    }

    public void setAlarm(boolean alarm) {
        this.alarm = alarm;
    }

    public boolean isStart() {
        return start;
    }

    public void setStart(boolean start) {
        this.start = start;
    }

    public int getAirbags() {
        return airbags;
    }

    public void setAirbags(int airbags) {
        this.airbags = airbags;
    }
    
    
    @Override
    public boolean drive(int fuelInLitres) {
             if(fuelInLitres > 0){
            start =  true;
            System.out.println("The Mordern car has started \n");
            }
             
        return start;
    }

    @Override
    public String stop() {
        return "The Mordern car has stoped \n";
    }

   
    
}
